<template>
	<view class="search-container"@click="clickSearch">
		<view class="search-box">
			<uni-icons type="search" size="15"></uni-icons>
			<text class="search-text"> 搜索 </text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"my-search",
		data() {
			return {
				
			};
		},
		methods:{
			clickSearch(){
				this.$emit('click')
			}
		}
	}
</script>

<style lang="scss">
.search-container{
	background-color: #C00000;
	padding: 5px 10px;
	.search-box{
		margin: 0 auto;
		width: 100%;
		height: 32px;
		line-height: 32px;
		border-radius: 30px;
		background-color: #ffe;
		text-align: center;
		font-size: 14px;
		.search-text{
			margin-left: 5px;
		}
	}
}
</style>